package cn.hzw.supermarket.domain;

import java.io.Serializable;

public class Goods implements Serializable {
       /**
        * 商品自动增长id
        */
       Integer goodsid;
       /**
        * 商品名
        */
       String goodsname;
       /**
        * 商品价格
        */
       Float goodsprice;
       /**
        * 商品量词
        */
       String goodsunit;
       /**
        * 商品数量
        */
       Integer goodscount;
       /**
        * 商品图片
        */
       String goodspicture;
       /**
        * 商品描述
        */
       String goodscontent;
       /**
        * 商品类别id
        */
       Integer goodscategory;
       /**
        * 用户名
        */
       String username;
       public Goods(){
          super();
       }

       public Goods(Integer goodsid, String goodscontent,String goodsname, Float goodsprice, String goodsunit, Integer goodscount, String goodspicture, Integer goodscategory, String username) {
              super();
              this.goodsid = goodsid;
              this.goodsname = goodsname;
              this.goodsprice = goodsprice;
              this.goodsunit = goodsunit;
              this.goodscount = goodscount;
              this.goodspicture = goodspicture;
              this.goodscategory = goodscategory;
              this.username = username;
              this.goodscontent=goodscontent;
       }

       public Integer getGoodsid() {
              return goodsid;
       }

       public void setGoodsid(Integer goodsid) {
              this.goodsid = goodsid;
       }

       public String getGoodscontent() {
              return goodscontent;
       }

       public void setGoodscontent(String goodscontent) {
              this.goodscontent = goodscontent;
       }

       public String getGoodsname() {
              return goodsname;
       }

       public void setGoodsname(String goodsname) {
              this.goodsname = goodsname;
       }

       public Float getGoodsprice() {
              return goodsprice;
       }

       public void setGoodsprice(Float goodsprice) {
              this.goodsprice = goodsprice;
       }

       public String getGoodsunit() {
              return goodsunit;
       }

       public void setGoodsunit(String goodsunit) {
              this.goodsunit = goodsunit;
       }

       public Integer getGoodscount() {
              return goodscount;
       }

       public void setGoodscount(Integer goodscount) {
              this.goodscount = goodscount;
       }

       public String getGoodspicture() {
              return goodspicture;
       }

       public void setGoodspicture(String goodspicture) {
              this.goodspicture = goodspicture;
       }

       public Integer getGoodscategory() {
              return goodscategory;
       }

       public void setGoodscategory(Integer goodscategory) {
              this.goodscategory = goodscategory;
       }

       public String getUsername() {
              return username;
       }

       public void setUsername(String username) {
              this.username = username;
       }

       @Override
       public String toString() {
              return "Goods{" +
                      "goodsid=" + goodsid +
                      ", goodsname='" + goodsname + '\'' +
                      ", goodsprice=" + goodsprice +
                      ", goodsunit='" + goodsunit + '\'' +
                      ", goodscount=" + goodscount +
                      ", goodspicture='" + goodspicture + '\'' +
                      ", goodscontent='" + goodscontent + '\'' +
                      ", goodscategory=" + goodscategory +
                      ", username='" + username + '\'' +
                      '}';
       }
}


